package com.yswy.domain.vo.gld.filter;

import com.yswy.domain.vo.dto.DataBaseFilter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

@Data
@EqualsAndHashCode(callSuper = true)
public class RolePageFilter extends DataBaseFilter {
    @ApiModelProperty("角色名称 关键字查询")
    private String keyWord;
    @ApiModelProperty("角色名称")
    private String roleName;
    @ApiModelProperty("时间类型 1:创建时间")
    private Integer timeType;
    @ApiModelProperty("冻结状态 true:冻结 false:不冻结")
    private Boolean freezingSatus;

    public String getKeyWord() {
        return StringUtils.isNotEmpty(keyWord) ? keyWord.trim() : keyWord;
    }
}
